package Baina8;

message Item {
	required int32 id = 1;
	required string name = 2;
	required int32 price = 3;
	required string desc = 4;
	required string detail = 5;
	required bytes image = 6;
}

message Gift {
	required int32 item = 1;
	required int32 company = 2;
	required int32 start_time = 3;
	required int32 number = 4;
	required int32 max_people = 5;
	required int32 current_people = 6;
}

message Login {
	required string IMEI = 1;
	enum LoginType {
		Anonymous = 0;
		Detail = 1;
		Bind = 2;
	}
	required LoginType type = 2;
	message DetailMessage {
		required string name = 1;
		required string passport = 2; 
	}
	optional DetailMessage detail = 3;
}